<template>
  <div
    class="svg-box"
    :style="{
      width: width + 'px'
    }"
  >
    <svg
      v-if="type=='doc' || type=='docx'"
      t="1714286431268"
      class="icon"
      viewBox="0 0 1024 1024"
      version="1.1"
      xmlns="http://www.w3.org/2000/svg"
      p-id="2394"
      width="128"
      height="128"
    ><path
      d="M959.16 187.68c2.14-23.23-16.1-41.26-39.32-38.92-108.92-1.76-217.84 0-326.84-0.61V66.64h-60.95C375.86 94.45 219.57 121 63.38 148.35v713c155.38 27.2 310.85 53.18 465.93 81.51H593v-81.51c102 0 203.87-0.2 305.86 0.31 17.32-0.82 36.58 0.51 51.45-10.09 11.92-18.24 8.87-41.06 9.89-61.64-1.45-200.72 0.69-401.53-1.04-602.25z"
      fill="#2A5699"
      p-id="2395"
    /><path
      d="M593 178.71h336.21v652.08H593v-81.51h264.9v-40.76H593v-50.94h264.9v-40.76H593v-50.94h264.9v-40.75H593v-50.95h264.9v-40.75H593v-50.94h264.9v-40.76H593v-50.94h264.9V250H593zM115.57 419.49h42.54q14.39 0 21.94 2.38a38.18 38.18 0 0 1 17.38 11.46 55.43 55.43 0 0 1 11 20.18q3.78 11.94 3.78 29.43 0 15.37-3.54 26.51-4.33 13.58-12.35 22-6.05 6.37-16.35 9.94-7.71 2.64-20.6 2.64h-43.8z m23.28 21.06V523h17.38q9.75 0 14.07-1.18a21 21 0 0 0 9.39-5.18q3.74-3.66 6.09-12t2.36-22.81q0-14.43-2.36-22.17t-6.6-12.06a21.6 21.6 0 0 0-10.78-5.87q-4.87-1.18-19.1-1.18zM227.23 482.51q0-19 5.27-31.94a59.12 59.12 0 0 1 10.73-17.07 45.09 45.09 0 0 1 14.9-11.21q10.78-4.93 24.85-4.93 25.48 0 40.77 17.07T339 481.92q0 30.15-15.17 47.18t-40.58 17q-25.72 0-40.89-16.94t-15.13-46.65z m24-0.85q0 21.15 9 32.06a29.54 29.54 0 0 0 45.8 0.09Q315 503 315 481.32q0-21.4-8.69-31.94t-23.08-10.54q-14.39 0-23.19 10.67t-8.83 32.15zM351.31 503.49l22.69-2.38q2 12.31 8.29 18.09t16.82 5.8q11.25 0 16.94-5.14t5.7-12a11.94 11.94 0 0 0-2.4-7.51q-2.4-3.1-8.37-5.39-4.09-1.54-18.64-5.44-18.72-5-26.26-12.32a33.55 33.55 0 0 1-10.62-25.05 33.91 33.91 0 0 1 5-17.8 31.92 31.92 0 0 1 14.39-12.61q9.4-4.34 22.69-4.34 21.7 0 32.67 10.28t11.52 27.44l-23.28 1.1q-1.49-9.6-6.41-13.8t-14.74-4.21q-10.15 0-15.88 4.5a9.33 9.33 0 0 0-3.7 7.73 9.85 9.85 0 0 0 3.46 7.56q4.4 4 21.39 8.33t25.12 9a33.6 33.6 0 0 1 12.74 12.66q4.6 8 4.6 19.84a38.79 38.79 0 0 1-5.51 20A33.64 33.64 0 0 1 424 541.67q-10.07 4.55-25.08 4.55-21.86 0-33.58-10.91t-14.03-31.82z"
      fill="#FFFFFF"
      p-id="2396"
    /></svg>
    <svg
      v-if="type=='ppt' || type=='pptx'"
      t="1714286393524"
      class="icon"
      viewBox="0 0 1024 1024"
      version="1.1"
      xmlns="http://www.w3.org/2000/svg"
      p-id="2189"
      width="128"
      height="128"
    ><path
      d="M536.3 70.5h57.4v91.12c108.22 0.61 216.55-1.12 324.67 0.5 23.28-2.22 41.51 15.9 39.18 39.18 1.72 189.12-0.41 378.34 1 567.56-1 20.45 2 43.13-9.72 61.25-14.78 10.73-34 9.31-51.32 10.12-101.24-0.5-202.48-0.31-303.82-0.31v101.25h-63C376.44 913 221.84 887.3 67.45 860.18q-0.15-354.29 0-708.48c156.22-27.04 312.43-54.58 468.85-81.2z"
      fill="#D24625"
      p-id="2190"
    /><path
      d="M593.7 192h334.1v617.55H593.7v-81h243v-40.5h-243v-50.6h243v-40.5H593.8c-0.1-19.84-0.1-39.69-0.21-59.53 40.1 12.45 85.76 12.15 121.6-12 38.78-23 59-66.82 62.37-110.55-44.45-0.3-88.89-0.2-133.23-0.2-0.11-44 0.5-88.08-0.91-132q-24.92 4.86-49.71 10.22z"
      fill="#FFFFFF"
      p-id="2191"
    /><path
      d="M664.67 261.54C735 264.78 794.16 324 797.91 394.16c-44.45 0.51-88.89 0.31-133.33 0.31-0.01-44.34-0.12-88.69 0.09-132.93zM290 392.75c19.94-0.91 44.65-4.56 58.1 14.17 11.55 19.84 10.93 46 1.32 66.41-11.55 20.86-37.67 18.83-57.81 21.26-2.13-33.91-1.94-67.83-1.61-101.84z"
      fill="#D24625"
      p-id="2192"
    /><path
      d="M114.33 544.84V421.11h37.12q21.1 0 27.5 1.86 9.85 2.77 16.49 12.11t6.64 24.09q0 11.39-3.83 19.16a33.28 33.28 0 0 1-9.73 12.2 32.5 32.5 0 0 1-12 5.86q-8.28 1.76-24 1.77h-15.06v46.68zM137.46 442v35.11h12.66q13.67 0 18.28-1.94a15.42 15.42 0 0 0 7.23-6.08 17.58 17.58 0 0 0 2.62-9.62 16.79 16.79 0 0 0-3.67-11.14 15.7 15.7 0 0 0-9.3-5.49q-4.15-0.83-16.64-0.84zM221.06 544.84V421.11h37.12q21.1 0 27.5 1.86 9.85 2.77 16.49 12.11t6.64 24.09q0 11.39-3.83 19.16a33.28 33.28 0 0 1-9.73 12.2 32.5 32.5 0 0 1-12 5.86q-8.28 1.76-24 1.77h-15.07v46.68zM244.18 442v35.11h12.66q13.67 0 18.28-1.94a15.42 15.42 0 0 0 7.23-6.08 17.58 17.58 0 0 0 2.62-9.62 16.79 16.79 0 0 0-3.67-11.14 15.7 15.7 0 0 0-9.3-5.49q-4.15-0.83-16.64-0.84zM353.57 544.84V442h-34v-20.89h91V442H376.7v102.8z"
      fill="#FFFFFF"
      p-id="2193"
    /></svg>
    <svg
      v-if="type=='xls' || type=='xlsx'"
      t="1714286325291"
      class="icon"
      viewBox="0 0 1024 1024"
      version="1.1"
      xmlns="http://www.w3.org/2000/svg"
      p-id="1938"
      width="128"
      height="128"
    ><path
      d="M533.58 75H594v81.31c101.74 0 203.47 0.2 305.21-0.31 17.18 0.71 36.09-0.51 51 9.76 10.47 15 9.25 34.15 10 51.43q-0.76 264.66-0.2 529.12c-0.51 29.58 2.74 59.76-3.45 88.93-4.14 21.1-29.56 21.61-46.56 22.32-105.3 0.31-210.69-0.2-316.09 0V949h-63.07c-154.9-28.15-310.1-54.17-465.2-81.31V156.37C221.66 129.23 377.67 102.51 533.58 75z"
      fill="#207245"
      p-id="1939"
    /><path
      d="M594 186.76h335.4v640.31H594v-61h81.31v-71.12H594v-40.66h81.31v-71.14H594v-40.66h81.31v-71.14H594v-40.66h81.31v-71.14H594v-40.66h81.31v-71.15H594z"
      fill="#FFFFFF"
      p-id="1940"
    /><path
      d="M715.92 247.74h142.29v71.15H715.92zM715.92 359.55h142.29v71.15H715.92zM715.92 471.35h142.29v71.15H715.92zM715.92 583.15h142.29v71.15H715.92zM715.92 694.95h142.29v71.15H715.92z"
      fill="#207245"
      p-id="1941"
    /><path
      d="M98.48 551.16l39.3-64.82-35.61-59.39h27.14l23.06 39.91L175 426.95h26.91l-35.77 60.33 39.3 63.89h-28l-25.49-43-25.57 43zM217.94 551.16V428h23.22v102.23h57.73v20.93zM309.56 510.75l22.59-2.37q2 12.28 8.27 18t16.82 5.77q11.22 0 16.9-5.13t5.69-12a11.91 11.91 0 0 0-2.39-7.49q-2.39-3.1-8.35-5.38-4.08-1.53-18.59-5.43-18.67-5-26.2-12.29a33.47 33.47 0 0 1-10.59-25 33.82 33.82 0 0 1 5-17.76A31.84 31.84 0 0 1 333 429.15q9.37-4.33 22.63-4.33 21.65 0 32.59 10.25t11.49 27.37l-23.22 1.1q-1.49-9.57-6.39-13.77t-14.7-4.2q-10.12 0-15.85 4.49a9.3 9.3 0 0 0-3.69 7.71 9.83 9.83 0 0 0 3.45 7.54q4.39 4 21.33 8.31t25.06 8.93a33.52 33.52 0 0 1 12.7 12.63q4.59 8 4.59 19.79a38.7 38.7 0 0 1-5.49 20 33.56 33.56 0 0 1-15.5 13.86q-10 4.54-25 4.54-21.81 0-33.49-10.89t-13.95-31.73z"
      fill="#FFFFFF"
      p-id="1942"
    /></svg>
    <svg
      v-if="type=='pdf'"
      t="1714283906074"
      class="icon"
      viewBox="0 0 1024 1024"
      version="1.1"
      xmlns="http://www.w3.org/2000/svg"
      p-id="1687"
      width="128"
      height="128"
    ><path
      d="M534.78 74.67h57.71v91.61c108.81 0.61 217.73-1.12 326.43 0.51 23.41-2.24 41.74 16 39.39 39.39 1.73 190.15-0.41 380.39 1 570.64-1 20.56 2 43.36-9.77 61.58-14.86 10.78-34.2 9.36-51.6 10.18-101.79-0.51-203.58-0.31-305.47-0.31v101.8h-63.3C374 921.77 218.61 895.92 63.38 868.64q-0.15-356.22 0-712.33c157.07-27.18 314.13-54.87 471.4-81.64z"
      fill="#DC2E1B"
      p-id="1688"
    /><path
      d="M110.51 551.6V427.19h37.32q21.22 0 27.65 1.87 9.9 2.8 16.57 12.18t6.68 24.23q0 11.45-3.85 19.25A33.46 33.46 0 0 1 185.1 497a32.41 32.41 0 0 1-12.1 5.88q-8.34 1.79-24.12 1.79h-15.12v46.93z m23.25-103.37v35.31h12.73q13.75 0 18.38-1.95a15.53 15.53 0 0 0 7.27-6.11 17.74 17.74 0 0 0 2.63-9.67 16.84 16.84 0 0 0-3.7-11.2 15.77 15.77 0 0 0-9.34-5.52q-4.18-0.85-16.73-0.85zM217.74 427.19h42.51q14.37 0 21.92 2.38A38.25 38.25 0 0 1 299.52 441a55.26 55.26 0 0 1 11 20.15q3.77 11.93 3.78 29.41 0 15.36-3.54 26.47-4.32 13.58-12.34 22-6 6.37-16.33 9.93-7.71 2.64-20.59 2.63h-43.76z m23.26 21v82.41h17.36q9.74 0 14.07-1.18a21 21 0 0 0 9.38-5.18q3.73-3.65 6.08-12t2.37-22.78q0-14.43-2.37-22.16t-6.59-12a21.61 21.61 0 0 0-10.77-5.85q-4.88-1.19-19.09-1.19zM334.16 551.6V427.19h78.95v21h-55.7v29.45h48.08v21h-48.08v52.96z"
      fill="#FFFFFF"
      p-id="1689"
    /><path
      d="M815.32 596.59a22.61 22.61 0 0 0-3.14-2.81c-4.66-3.52-14.15-8.66-32.86-13.11q-2.79-0.67-5.77-1.29c12.42 9.27 23 15 31.7 17 5.21 1.3 8.38 0.8 10.07 0.21zM708.86 409c2.43-8.52 4.09-23.81 0.57-26.88l-0.06 0.07c-4.7 6.5-10.64 33.19-8.67 49.29 3.73-6.64 4.91-11.08 8.16-22.48zM709.47 552.2A211.78 211.78 0 0 1 683 499.62a541.34 541.34 0 0 1-45.11 54.52c16.99-1.68 43.93-2.64 71.58-1.94z"
      fill="#FFFFFF"
      p-id="1690"
    /><path
      d="M589.1 196.82v361.91c9.41-2.69 15.9-4.05 15.9-4.05 5.64-5.88 5-5.33 11.77-12.6a758.94 758.94 0 0 0 59.94-73.54c-0.18-2.36-6.65-91.12 21.44-102.93a18.67 18.67 0 0 1 11.64-0.85c5.13 1.22 10 4.54 12.5 8.45 6.34 10.07 6.22 24.77 1 45.35-8.28 32.57-20.9 50.71-20.9 50.71s4 40.18 42 84.79c17.45 1.48 32.46 3.69 44.64 6.59 20.94 5 33.39 11.92 38.06 21.19 2.64 5.24 3 11.7-0.16 19.32s-6.37 11.4-12.2 13.64c-4.88 1.88-11 2-18.13 0.26-21.32-5.08-49.59-25.37-68-41.71-29.78-2.34-65.92-2.6-107.48-0.8q-18.53 19.91-32.07 31.85v213.35H925V196.82z"
      fill="#FFFFFF"
      p-id="1691"
    /></svg>
  </div>
</template>

<script setup>
defineProps({
  type: {
    default: '',
    type: String
  },
  width: {
    default: '128',
    type: String
  }
})
</script>

<style lang="scss" scoped>
.svg-box{
  display: inline-block;
}
svg{
  width: 100%;
  height: 100%;
}
</style>
